package cn.com.w.bootdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.Map;
import java.util.Properties;

@SpringBootApplication
public class BeanConfigApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(BeanConfigApplication.class, args);
        /*String[] beanDefinitionNames = run.getBeanDefinitionNames();
        for (String name : beanDefinitionNames) {
            System.out.println("bean-name--->"+name);
        }*/

        Map<String, String> getenv = System.getenv();
        Properties properties = System.getProperties();
        System.out.println("启动成功。");
    }
}
